GetPalColor

Returns the RGB color of the imaG palette at a specific palette index.

Syntax: imaG.GetPalColor (index)
index (long) Specifies the index in the palette to obtain the color value from. Must be in the range 0-255 ; 0-15 ; 0-1 for a color depth 8 ; 4 ; 1
Returns: (OLE_COLOR) Color value.

If the image is a true color image (24 bit per pixel depth), an ERROR will be thrown.

See also Color & Palettes , SetPalColor , GetPalette , SetPalette